package priv.yiyuan.example.design;

/**
 * 位图渲染器
 * <p>
 * 桥接模式(具体实现者)
 */
public class RasterRenderer implements Renderer {

    @Override
    public void renderCircle(double radius) {
        System.out.println("[位图] 半径为: " + radius + "的圆。");
    }

    @Override
    public void renderRectangle(double width, double height) {
        System.out.println("[位图] 宽度: " + width + ", 高度: " + height + "的矩形。");
    }

    @Override
    public void renderText(String text) {
        System.out.println("[位图] 内容为: " + text + "的文本框。");
    }
}
